package com.study.sfd.medicine.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.study.common.utils.PageUtils;
import com.study.common.utils.Query;

import com.study.sfd.medicine.dao.MedicineImgsDao;
import com.study.sfd.medicine.entity.MedicineImgsEntity;
import com.study.sfd.medicine.service.MedicineImgsService;


@Service("medicineImgsService")
public class MedicineImgsServiceImpl extends ServiceImpl<MedicineImgsDao, MedicineImgsEntity> implements MedicineImgsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MedicineImgsEntity> page = this.page(
                new Query<MedicineImgsEntity>().getPage(params),
                new QueryWrapper<MedicineImgsEntity>()
        );

        return new PageUtils(page);
    }

}